<div class="user">
    <nz-collapseset>
        <nz-collapse [nzTitle]="panels.name" [nzActive]="panels.active" [nzDisabled]="panels.disabled">
            <form nz-form [nzLayout]="'inline'" >
                <div nz-form-item nz-col [nzSpan]="12">
                    <div nz-form-label nz-col [nzSm]="9" [nzXs]="6">
                        <label>被检查机构</label>
                    </div>
                    <div nz-form-control>
                        <nz-select
                        style="width: 300px;"
                        name="qUsedPartyId"
                        nzAllowClear
                        [nzPlaceHolder]="'请选择'"
                        [(ngModel)]="qUsedPartyId"
                        nzShowSearch>
                        <nz-option
                            *ngFor="let option of partyOtion"
                            [nzLabel]="option.partyName"
                            [nzValue]="option.id"
                            [nzDisabled]="option.disabled">
                        </nz-option>
                        </nz-select>
                    </div>
                </div>
                <button nz-button [nzSize]="'large'" [nzType]="'primary'" (click)="query()">查询</button>
            </form>
        </nz-collapse>
    </nz-collapseset>
 
    <nz-table #nzTable [nzDataSource]="list" nzSize="middle" [nzBordered]="true" [nzIsPagination]="false" (nzDataChange)="displayDataChange($event)">
        <thead nz-thead>
        <tr>
            <th nz-th [nzCheckbox]="true">
                <label nz-checkbox [(ngModel)]="allChecked" [nzIndeterminate]="indeterminate" (ngModelChange)="checkAll($event)">
                </label>
            </th>
            <th nz-th><span>检查日期</span></th>
            <th nz-th><span>被检查机构</span></th>
            <th nz-th><span>检查类别</span></th>
            <th nz-th><span>处理措施</span></th>
            <th nz-th><span>是否已确认</span></th>
            <!-- <th nz-th><span>详情</span></th> -->
            <th nz-th><span>导出</span></th>
        </tr>
        </thead>
        <tbody nz-tbody>
        <tr nz-tbody-tr *ngFor="let data of list">
            <td nz-td [nzCheckbox]="true">
                <label nz-checkbox [nzDisabled]="data.disabled" [(ngModel)]="data.checked" (ngModelChange)="refreshStatus($event)">
                </label>
            </td>
            <td nz-td>{{data.checkTimeTo | timeTrans}}</td>
            <td nz-td>{{data.partyName}}</td>
            <td nz-td>{{data.checkItem | constantTransfer:checkItems}}</td>
            <td nz-td>{{data.dealWay | constantTransfer:dealWays}}</td>
            <td nz-td>{{data.adviceTime?'是':'否'}}</td>
            <!-- <td nz-td><span><button nz-button [nzSize]="'small'" [nzType]="'primary'" (click)="toDetail(data)">详情</button></span></td> -->
            <td nz-td><span><button nz-button [nzSize]="'small'" [nzType]="'primary'" (click)="toExport(data.id)">导出</button></span></td>
        </tr>
        </tbody>
    </nz-table>

    <nz-pagination [nzPageIndex]="safeControlBean.currentPage" nzShowTotal [nzTotal]="total" nzShowSizeChanger (nzPageSizeChange)="nzPageSizeChange($event)" (nzPageIndexChange)="nzPageIndexChange($event)" (nzPageIndexClickChange)="nzPageIndexClickChange($event)" [nzPageSize]="safeControlBean.pageSize"></nz-pagination>

    <!--添加页面 -->
    <ng-template #title>
        <span>详情</span>
    </ng-template>
    <ng-template #content>
        
        <!-- <safe-control-record-detail [inValue]="detailData" ></safe-control-record-detail> -->
    </ng-template>
    <ng-template #footer>
        <div>
        </div>
    </ng-template>
 
</div>